package day3;

/**
 * @author oldliu
 * @since 1.0
 */
public class SbTest {
    public static void main(String[] args) {
        StringBuilder sb=new StringBuilder("java");
        sb.append(Math.PI);
        sb.append("sdlkfjsdf");
        sb.append(2>5);
        sb.append(4.5/2.3);
        sb.append('刘');
        System.out.println(sb);
        sb.delete(5,8).insert(6,"老刘").deleteCharAt(14);
        System.out.println(sb);
        sb.reverse();
        System.out.println(sb);
        System.out.println(sb.length());
        int po = sb.indexOf("刘老");
        System.out.println(po);
        //sb.append()
        // String str=sb.toString();

    }
}
